package br.edu.ufcg.unknown.lexico;

import java.util.Collection;

import org.apache.commons.collections.CollectionUtils;

import junit.framework.TestCase;

public class UnknownTest extends TestCase {

	protected String toString(Collection<?> caracteresRecebidos) {
		StringBuilder sb = new StringBuilder();

		String LINE_SEPARATOR = System.getProperty("line.separator");

		for (Object object : caracteresRecebidos) {
			sb.append(object);
			sb.append(LINE_SEPARATOR);
		}

		return sb.toString();
	}

	protected <E extends Object>boolean isEqual(Collection<E> a, Collection<E> b) {
		return CollectionUtils.isEqualCollection(a, b);
	}

}
